<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@page import="app.maker.outils.Niveau"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%
	if (session.getAttribute("id") == null
			&& ((Integer) session.getAttribute("role")) != Niveau.ADMIN
					.ordinal())
		response.sendRedirect(request.getContextPath()
				+ "/maker/login.jsp");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
<title>Bienvenue sur maker solution</title>
<meta name="description" content="website description" />
<meta name="keywords" content="website keywords, website keywords" />
<meta http-equiv="content-type"
	content="text/html; charset=windows-1252" />
<link rel="stylesheet" type="text/css" href="style/style.css" />
</head>

<body>
	<div id="main">
		<div id="header">
			<div id="logo">
				<div id="logo_text">
					<!-- class="logo_colour", allows you to change the colour of the text -->
					<h1>
						<a href="index.jsp">Maker<span class="logo_colour">Solution</span></a>
					</h1>
					<h2>Projet de pad</h2>
				</div>
			</div>
			<div id="menubar">
				<ul id="menu">
					<li><a href="index.jsp">Home</a></li>
					<li class="selected"><a href="espace-utilisateurs.jsp">Gestion
							des utilisateurs</a></li>
					<li><a href="espace-tickets.jsp">Gestion des tickets</a></li>
					<li><a href="espace-stocks.jsp">Gestion de stock</a></li>
					<li><a href="about-us.jsp">Aide</a></li>
				</ul>
			</div>
		</div>
		<div id="content_header"></div>
		<div id="site_content">
			<div id="sidebar_container">
				<div class="sidebar">
					<div class="sidebar_top"></div>
					<div class="sidebar_item">
						<p>
							<img src="resources/admin.png" alt="example graphic" /> <br />
							<a href="profil.jsp">Profil</a>
						</p>
					</div>
					<div class="sidebar_base"></div>
				</div>
				<div class="sidebar">
					<div class="sidebar_top"></div>
					<div class="sidebar_item">
						<h3>Options</h3>
						<ul>
							<li><a href="nouveau-utilisateur.jsp">Ajouter un employe</a></li>
							<li><a href="#">link 2</a></li>
							<li><a href="#">link 3</a></li>
							<li><a href="#">link 4</a></li>
						</ul>
					</div>
					<div class="sidebar_base"></div>
				</div>
				<div class="sidebar">
					<div class="sidebar_top"></div>
					<div class="sidebar_item">
						<h3>Recherche</h3>
						<form method="post" action="#" id="search_form">
							<p>
								<input class="search" type="text" name="search_field" value="" />
								<input name="search" type="image"
									style="border: 0; margin: 0 0 -9px 5px;" src="style/search.png"
									alt="Search" title="Search" />
							</p>
						</form>
					</div>
					<div class="sidebar_base"></div>
				</div>
			</div>
			<div id="content">
				<h2>Ajout d'un employe</h2>
				<form action="/WEB_MAKER/UserControleur" method="post">
					<div class="form_settings">
						<p>
							<span>Nom</span><input type="text" name="nom" value="" />
						</p>
						<p>
							<span>Prenom</span><input type="text" name="prenom" value="" />
						</p>
						<p>
							<span>Email</span><input type="text" name="email" value="" />
						</p>
						<p>
							<span>Adresse</span><input type="text" name="adresse" value="" />
						</p>
						<p>
							<span>Fonction</span><input type="text" name="fonction" value="" />
						</p>
						<p>
							<span>Salaire</span><input type="text" name="salaire" value="" />
						</p>

						<p>
							<span>Role</span><select id="id" name="role"><option
									value="<%=Niveau.ADMIN.ordinal()%>">Admin</option>
								<option value="<%=Niveau.LOGISTIQUE.ordinal()%>">Logistique</option>
								<option value="<%=Niveau.INGENIEUR.ordinal()%>">Ingenier</option>
								<option value="<%=Niveau.OUVRIER.ordinal()%>">Ouvrier</option></select>
						</p>
						<p style="padding-top: 15px">
							<span>&nbsp;</span><input class="submit" type="submit"
								name="ajouter" value="Ajouter" />
						</p>
					</div>
				</form>
			</div>
		</div>
		<div id="content_footer"></div>
		<div id="footer">
			<p>
				<a href="index.jsp">Home</a> | <a href="espace-utilisateurs.jsp">Gestion
					des utilisateurs</a> | <a href="espace-tickets.jsp">Gestion des
					tickets</a> | <a href="espace-stocks.jsp">Gestion de stock</a> | <a
					href="about-us.jsp">Aide</a>
			</p>
			<p>
				Copyright &copy; maker-solution | <a href="">SDR</a> | <a href="">PAD</a>
				| <a href="">Univ-fcomte</a>
			</p>
		</div>
	</div>
</body>
</html>
